package com.caigou.modules.website.repository

import com.caigou.comm.base.bean.HttpResult
import com.caigou.modules.website.bean.WebsiteBean
import com.caigou.modules.website.network.HttpWebsiteService
import dagger.hilt.android.scopes.ActivityRetainedScoped
import kotlinx.coroutines.flow.Flow
import javax.inject.Inject

/**
 * @author #Suyghur.
 * Created on 2021/09/26
 */
@ActivityRetainedScoped
class WebsiteRepository @Inject constructor() {

    fun getWebsite(): Flow<HttpResult<MutableList<WebsiteBean>>> {
        return HttpWebsiteService.service.getWebsite()
    }
}